package com.jh.paymentchannel.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name="t_ml_quick_bindcard")
public class MiLianQuickBindCard implements Serializable {
    private static final long serialVersionUID = -161209407465750441L;
    @Id
    @Column(name="id")
    private long id;

    @Column(name="user_id")
    private String userId;

    //手机号
    @Column(name="phone")
    private String phone;

    //身份证
    @Column(name="id_card")
    private String idCard;

    //信用卡卡号
    @Column(name="bank_card")
    private String bankCard;

    //绑卡状态 N:未绑卡或绑卡失败;Y:绑卡成功
    @Column(name="state")
    private String state;

    @Column(name="create_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getBankCard() {
        return bankCard;
    }

    public void setBankCard(String bankCard) {
        this.bankCard = bankCard;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
